﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program2
    {
        //1、猫、狗、鸭、猴，（吃、游泳、爬树）
        static void Main(string[] args)
        {
            Cat cat = new Cat();
            cat.Eat();
            cat.Tree();
            Console.WriteLine();

            Dog dog = new Dog();
            dog.Eat();
            dog.Swin();
            Console.WriteLine();

            Monkey monkey = new Monkey();
            monkey.Eat();
            monkey.Tree();
            Console.WriteLine();



                
        }
        public static void Animal(Animal A)
        {
            A.Eat();
        }

        public static void Tree(Tree T)
        {
            T.Tree();
        }
        public static void Swin(Swin S)
        {
            S.Swin();
        }
    }
}
